/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 10/8/12
 * Time: 11:11 PM
 * To change this template use File | Settings | File Templates.
 */
package site {
import mx.containers.Panel;
import mx.core.UIComponent;

import site.ui.NavigationPanel;

import spark.components.BorderContainer;
import spark.components.Group;

public class BeansFactory {
    private static var _navigationPanel:NavigationPanel = null;
    private static var _pageContainer:Group = null;
    private static var _currentPage:Group = null;

    public static function getNavigationPanel():NavigationPanel {
        return _navigationPanel;
    }

    public static function setNavigationPanel(value:NavigationPanel):void {
        _navigationPanel = value;
    }

    public static function getPageContainer():Group {
        return _pageContainer;
    }

    public static function setPageContainer(value:Group):void {
        _pageContainer = value;
    }

    public static function getCurrentPage():Group {
        return _currentPage;
    }

    public static function setCurrentPage(value:Group):void {
        _currentPage = value;
        if (_pageContainer != null) {
            _pageContainer.removeAllElements();
            _pageContainer.addElement(value);
        }
    }
}
}
